Finding the median from a dot plot